<?php
	/**
	 *	KLF Framework
	 *
	 *	Written by Kristian Oye <kristianoye@gmail.com> on Oct 22, 2011
	 *	Copyright (C) 2010-2011
	 */
	namespace KLF\System\Errors
	{
		use KLF\System\IKObject;
		
		/**
		 *  Class KException
		 *
		 *  The base exception type for the KLF Framework
		 *
		 *  @package KLF\System\Errors
		 *  @access public
		 *  @author Kristian Oye <kristianoye@gmail.com>
		 *  @since 0.1
		 */
		class KException extends \Exception implements IKObject
		{
			public function __construct($msg = '', $code = 0, $previous = NULL)
			{
				parent::__construct($msg, $code, $previous);
			}
			
			/**
			 * Returns the class name at the level which the method was called.
			 * 
			 * @return string The class name
			 * @since 0.1
			 */
			public final static function GetType()
			{
				return get_called_class();
			}
		}
	}